<template>
  <view :style="themeColor">
    <view class="page">
      <view
        class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex cardAndSafe_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-stretch justify-between cardAndSafe_fd0_0'>
          <view class='flex flex-wrap align-center cardAndSafe_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  cardAndSafe_fd0_0_c0_c0'>&#xe794;</text>
          </view>
          <view class='flex flex-wrap align-center'>
            <text class='cardAndSafe_fd0_0_c1_c0'>账号与安全</text>
          </view>
          <view class='flex align-center justify-end cardAndSafe_fd0_0_c2'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>

      <view class="flex flex-direction flex-wrap align-stretch cardAndSafe_flex_1">
        <view class='flex flex-wrap align-center justify-between cardAndSafe_fd1_0' @tap.stop="handleJumpDiy"
          data-type="navigateTo" :data-url="`/pages/xtsz/changePwd/changePwd`">
          <text class='cardAndSafe_fd1_0_c0'>修改密码</text>
          <text class='fu-iconfont2  cardAndSafe_fd1_0_c1'>&#xE7F2;</text>
        </view>
        <view class='flex flex-wrap align-center justify-between cardAndSafe_fd1_0' v-if="login_type=='mobile'"
          @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/xtsz/boundPhone/boundPhone`">
          <text class='cardAndSafe_fd1_0_c0'>修改绑定手机号</text>
          <text class='fu-iconfont2  cardAndSafe_fd1_0_c1'>&#xE7F2;</text>
        </view>
        <view class='flex flex-wrap align-center justify-between cardAndSafe_fd1_2' v-if="login_type=='email'"
          @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/xtsz/boundEmail/boundEmail`">
          <text class='cardAndSafe_fd1_0_c0'>修改绑定邮箱号</text>
          <text class='fu-iconfont2  cardAndSafe_fd1_0_c1'>&#xE7F2;</text>
        </view>
      </view>




    </view>
  </view>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
        login_type: ''
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.getUser()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      async getUser() {
        let datauserInfo = await this.$api.get(global.apiUrls.post5c78c4772da97, {

        });

        if (datauserInfo.data.code != 1) {
          this.$message.info(datauserInfo.data.msg);
          return
        }
        let infouserInfo = datauserInfo.data;
        this.login_type = infouserInfo.data.account_type

      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(248, 248, 248, 1);
    background-size: 100% auto;
  }

  .cardAndSafe_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .cardAndSafe_fd0_0_c2 {
    padding: 0rpx 0rpx 0rpx 0rpx;
    width: 100rpx;
  }

  .cardAndSafe_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: var(--benbenFontColor0);
    line-height: 50rpx;
  }

  .cardAndSafe_fd0_0_c0_c0 {
    font-size: 36rpx;
    font-weight: 400;
    color: #333;
  }

  .cardAndSafe_fd0_0_c0 {
    width: 100rpx;
  }

  .cardAndSafe_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
  }

  .cardAndSafe_flex_1 {
    background: #fff;
    font-size: 32rpx;
    background-size: 100% auto !important;
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .cardAndSafe_fd1_2 {
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .cardAndSafe_fd1_0_c1 {
    font-size: 26rpx;
    color: rgba(191, 191, 191, 1);
    font-weight: 400;
  }

  .cardAndSafe_fd1_0_c0 {
    font-size: 32rpx;
    font-weight: 400;
    color: var(--benbenFontColor0);
  }

  .cardAndSafe_fd1_0 {
    border-bottom: 1px solid #eee;
    padding: 32rpx 0rpx 32rpx 0rpx;
  }
</style>